import { request } from '../request/request.js'

export function getIntegralData(token) {
  return new Promise((resolve, resject) => [
    request({
      url: `/score/rank?id=${token}`,
      method: 'GET',
    }).then(res => {
      resolve(res)
    })
  ])
}